package com.kehutong.charge.util.enums;

import org.coraframework.util.HashID;

import java.util.EnumSet;
import java.util.HashMap;

/**
 * @program: kht
 * @description: 催费类型枚举
 * @author: joneron
 * @create: 2021/7/5
 **/
public enum UrgingTypeEnum implements HashID {

	MSG_SITE("1", "站内消息"),
	MSG_PUSH("2", "微信消息推送"),
	MSG_PHONE("3", "手机短信"),
	// MSG_SLIP("4", "缴费单"),
	// MSG_RECEIPT("5", "收据短信"),
	// MSG_DROP_IN("6", "管家上门"),
	// MSG_LAWYER("7", "律师收费"),
	;
	private final String id;
	private final String desc;

	UrgingTypeEnum(String id, String desc) {
		this.id = id;
		this.desc = desc;
	}

	@Override
	public String getId() {
		return id;
	}
	
	@Override
	public String getDesc() {
		return desc;
	}

	/**
	 * 集合Map
	 */
	public static HashMap<String,String> getMap() {

		HashMap<String, String> map = new HashMap<>();
		for (UrgingTypeEnum enums : EnumSet.allOf(UrgingTypeEnum.class)) {
			map.put(enums.id, enums.desc);
		}
		return map;
	}

}
